package com.sinothk.fc.employee.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sinothk.fc.employee.entity.StoreEmployeeEntity;
import com.sinothk.fc.employee.entity.StoreEmployeeVO;

/**
 * @Description: 门店员工表
 * @Author: Liangyt
 * @Date: 2022-09-04
 * @Version: V1.0
 */
public interface IStoreEmployeeService extends IService<StoreEmployeeEntity> {

    IPage<StoreEmployeeVO> pageForCurrStore(Page<StoreEmployeeVO> page);

//    void addStoreEmployee(String storeId, String phone) throws Exception;

//    void addStoreEmployee(String id, String phone, String role) throws Exception;

    void addStoreEmployee(String storeId, String userId, String phone, String role) throws Exception;

    void unbinding(String storeId, String employeePhone);

    StoreEmployeeEntity getUserPostInfoInStore(String storeId, String userPhone);


    void updateByStoreIdAndPhone(StoreEmployeeEntity storeEmployee) throws Exception;

    StoreEmployeeEntity binding(String storeId, String employeePhone) throws Exception;
}
